package com.swt.testdemo.form;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.Min;

/**
 * @author BleethNie
 * @version 1.0
 * @date 2020/11/12 11:11
 **/
@Data
@ApiModel(value = "查看日志表单")
public class QueryLogForm {
    @ApiModelProperty(value = "页码",example = "1")
    @Min(1)
    private Integer page;

    @ApiModelProperty(value = "每页数量",example = "10")
    @Range(min=5,max = 50,message = "每页条数必须在5到50 之间")
    private Integer limit;


    @ApiModelProperty(value = "用户id过滤",example = "1")
    private Integer userIdFilter;

    @ApiModelProperty(value = "操作过滤",example = "xxx")
    private String operationFilter;


}
